﻿@using Orchard.Utility.Extensions;
@{
    Script.Require("jQuery").AtHead();
    Script.Include("FamilyTree.js").AtFoot();
    Script.Include("AntiForgery.js").AtHead();
    Style.Include("FamilyTree.css");
}

<div class="FamilyTree FamilyTreeRendered"></div>

<script type="text/javascript">
    $(document).ready(function(){
        familyTree.init({ Id: @Model.FamilyMemberId, url: "@Model.Url", name: "@Model.FamilyName", x: 0, y: 0 },
        {
            addUrl: '@Url.Action("AddTag", "Home", new { area = "TekFlow.FamilyTree" })',
            deleteUrl: '@Url.Action("DeleteTag", "Home", new { area = "TekFlow.FamilyTree" })',
            startUrl: '@Url.Action("StartingTags", "Home", new { area = "TekFlow.FamilyTree" })',
            edit: false
        }
        );    
    }); 
</script>
